package lib.quasar.pedometer;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

/**
 * description: 当前类描述信息
 * created by kalu on 2018/4/3 14:27
 */
public final class PedometerShutdownReceiver extends BroadcastReceiver {

    private static final String TAG = "PedometerShutdownRec";

    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent.getAction().equals(Intent.ACTION_SHUTDOWN)) {
            Log.e(TAG, "PedometerShutdownReceiver");
            PedometerSPHelper.setShutdown(context, true);
        }
    }
}
